package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.model.cart.CartInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sunjipu
 * @create 2020-04-17 16:02
 */
@Service
public interface CartService {
    // 添加购物车 用户Id，商品Id，商品数量。
    CartInfo addToCart(Long skuId, Integer skuNum,String userId);

    List<CartInfo> cartList(String userId, String userTempId);

    void checkCart(String userId, Integer isChecked, Long skuId);

    void deleteCart(Long skuId, String userId);

    List<CartInfo> getCartCheckedList(String userId);
}
